<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> -SysTplPconfig列表</title>
<#include "../comm/commcss/commCss.ftl">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>基本
                        <small>SysTplPconfig列表</small>
                    </h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="table_data_tables.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="${base}/sysTplPconfig/add.show">新增</a>
                            </li>
                        </ul>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <button class="btn btn-success btn-batchCreate" type="button">
                        <i class="fa fa-upload"></i>&nbsp;&nbsp;<span class="bold">action</span>
                    </button>
                    <table class="table table-striped table-bordered table-hover dataTables-sysTplPconfigList"
                           id="dataTables-sysTplPconfigList">
                        <thead>
                        <tr>
                            <th><a href="#" class="check-link" id="selectAll_checkbox">
                                <i class="fa fa-square-o"></i> 全选</a></th>
                            <th></th>
                            <th>配置key</th>
                            <th>配置value</th>
                            <th>描述</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list sysTplPconfigList as sysTplPconfig>
                        <tr class="gradeA">
                            <td>
                                <a href="#" class="check-link">
                                    <i class="fa fa-square-o"></i>
                                </a>
                            </td>
                            <td>${sysTplPconfig.id!""}</td>
                            <td>${sysTplPconfig.confkey!""}</td>
                            <td>${sysTplPconfig.confvalue!""}</td>
                            <td>${sysTplPconfig.description!""}</td>
                            <td>
                                <div class="text-center">
                                    <button type="button" class="btn btn-primary" data-toggle="modal"
                                            data-target="#myModalTPL"
                                            onclick="SysTplPconfigListObj.myModalTPLShow(${sysTplPconfig.id},this)">
                                        编辑
                                    </button>
                                    <button type="button" class="btn btn-primary" data-toggle="modal"
                                            data-target="#myModal5"
                                            onclick="SysTplPconfigListObj.deleteSysTplPconfigById(${sysTplPconfig.id})">
                                        删除
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </#list>
                        </tbody>
                        <tfoot>
                        <tr>
                            <th></th>
                            <th></th>
                            <th>配置key111</th>
                            <th>配置value</th>
                            <th>描述</th>
                            <th>操作</th>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal inmodal fade" id="myModalTPL" tabindex="-1" role="dialog"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span
                        aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
            <#--<h4 class="modal-title">窗口标题</h4>-->
            </div>
            <div class="modal-body">
                <form name="updateSysTplPconfigForm" id="updateSysTplPconfigForm">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            编辑
                        </div>
                        <div class="panel-body">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">配置key：</label>

                                    <div class="col-sm-8">
                                        <input id="confkey" name="confkey" class="form-control" type="text">
                                        <span class="help-block m-b-none">
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">配置value：</label>

                                    <div class="col-sm-8">
                                        <input id="confvalue" name="confvalue" class="form-control" type="text">
                                        <span class="help-block m-b-none">
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">描述：</label>

                                    <div class="col-sm-8">
                                        <input id="description" name="description" class="form-control" type="text">
                                        <span class="help-block m-b-none">
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-3" style="margin-left:71%;top:10px">
                                        <button type="button" id="closeBtn" class="btn btn-white" data-dismiss="modal">
                                            关闭
                                        </button>
                                        <button type="button" class="btn btn-primary" id="updateScriptBtn">更新</button>
                                        <input type="hidden" value="" name="id" id="temp_id">
                                    </div>
                                </div>
                            <#--<div class="modal-footer">
                                <div class="input-group m-b">

                                </div>
                            </div>-->
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>

</body>


<!-- 自定义js -->
<#include "${base}/comm/commjs/commJs.ftl">
<!-- 自定义js -->
<script src="${base}/myjs/sysTplPconfig/sysTplPconfigList.js?v=1.0.0"></script>
<script>
    $(document).ready(function () {

        /*   //更新模板内容
           $('#showEdit').click(function () {
               SysTplPconfigListObj.myModalTPLShow();
           });*/
        //更新模板内容
        $('#updateScriptBtn').click(function () {
            SysTplPconfigListObj.updatePconfigById();
        });

        $('#selectAll_checkbox').click(function () {
            var $childNode = $(this).find("i");
            if ($childNode.attr("class") == 'fa fa-check-square') {
                utils.checkAllBox('fa fa-check-square');
            } else {
                utils.checkAllBox('fa fa-square-o');
            }

        });
    });
</script>
</body>

</html>
